-- CALC_SIGNBOARD_EVENT_BONUS

-- 冈布奥事件-月卡额外奖励
return function(eventId, para)
    local level = para["level"];
    local bonusType = para["bonus_type"];

    if bonusType == "gem" then
        -- 钻石，2个
        return { 2, "gem", 5, };
    elseif bonusType == "money" then
        -- 金币，20000
        return { 2, "money", 50000, };
    elseif bonusType == "material" then
        -- 炼金材料，根据月卡级别不同，获得的材料不同
        -- 材料阶位：月卡等级～月卡等级+1
        -- 材料数量：1阶75个，2阶25个，3阶15个，4阶10个
        local rand1 = RandomFactoryM.myRandom(ME.user) % 2;
        local rand2 = RandomFactoryM.myRandom(ME.user) % 2 + 1;
        local materialList = {{1102,1103,75}, {1104,1105,25}, {1106,1107,15}, {1108,1109,10},};
        local materialBonus = materialList[level + rand1];

        return {1, materialBonus[rand2], materialBonus[3]};
    end
end
